
import request from '@/utils/processRequest';

// 获取表格数据
export function getFileList(data) {
  return request({
    url: '/file/lib/getList',
    method: 'post',
    data
  });
}

// 获取通知的人员
export function getUserList(data) {
  return request({
    url: '/capitalUser/getByUserId',
    method: 'post',
    data
  });
}

// 发送消息
export function sendMsg(data) {
  return request({
    url: '/file/lib/sendMsg',
    method: 'post',
    data
  });
}

export function removeFile(data) {
  return request({
    url: '/file/remove',
    method: 'post',
    data
  });
}
// 上传文件
export function uploadFile(data) {
  return request({
    url: '/file/upload',
    method: 'post',
    data
  });
}
// 对南威的接口进行调用
export function uploadNanWei(data) {
  return request({
    url: '/file/lib/uploadNanWei',
    method: 'post',
    data
  });
}
// 根据id下载文件
export function downFileNew(data) {
  return request({
    url: '/file/downloadById',
    methods: 'get',
    params: data,
    responseType: 'blob'
  });
}
